<h2><?php echo __('total')?></h2>
<h3><span><?php echo __('all_jobs')?></span> - <?php echo $activeJobs?></h3>
<h3><span><?php echo __('all_categories')?></span> - <?php echo $categories?></h3>
<hr>
<h4><?php echo __('total_by_category')?></h4>
<?php
    $template = '<h3>' . __('category') . ' %s' . ' - %s ' . __('jobs') . '</h3>';
    foreach ($byCategory as $c)
    {
        echo sprintf($template, $c['NAME'], $c['total']);
    }
?>